import { IsNotEmpty, MaxLength } from 'class-validator';

export class CreateDto {
  @MaxLength(20, { message: '名称不超过20个字符' })
  @IsNotEmpty({ message: '名称不能为空' })
  name: string;

  birthday: Date;

  deadday: Date;

  description: string;

  life: string;

  gender: number;

  wiki: string;

  dynasty: string;
}
